//
//  UIColor+Extension.swift
//  01-新浪微博
//
//  Created by 陈许亚 on 16/3/16.
//  Copyright © 2016年 cxy. All rights reserved.
//

import UIKit

extension UIColor {
    //随机色
    class func randomColor() -> UIColor{
        let r = CGFloat(random()) % 256.0 / 255.0
        let g = CGFloat(random()) % 256.0 / 255.0
        let b = CGFloat(random()) % 256.0 / 255.0
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
        
    }
}
